package Test11;

public class Dog extends Amimal{


    public void eat() {
        System.out.println(name + " 正在干饭中");
    }
    public void sleep() {
        System.out.println(name + "正在狗叫");
    }
    public void bark() {
        System.out.println(name + " 正在睡觉");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        String s = dog.name;
        System.out.println(s);
    }
}
